package cn.wanda.bi.sunshine.platform.server.client;

import cn.wanda.bi.sunshine.platform.server.client.request.elasticsearch.ElasticSearchQueryForDistinctField1Field2;
import org.springframework.cloud.netflix.feign.FeignClient;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;

import cn.wanda.bi.sunshine.platform.server.client.request.elasticsearch.ElasticSearchQuery;
import cn.wanda.bi.sunshine.platform.server.client.request.elasticsearch.ElasticSearchQueryForDistinct;

/**
 * Created by wangfupeng1
 */
@FeignClient(name = "ElasticSearch", url = "${client.elasticSearch.url2:}")
public interface ElasticSearchClient2 {

    //发送短信验证码
    @RequestMapping(method = {RequestMethod.POST}, value = {"/user_label/_search"})
    String userLabelSearch(@RequestBody ElasticSearchQuery query);

    @RequestMapping(method = {RequestMethod.POST}, value = {"/user_label/_search"})
	String userLabelSearchForDistinct(@RequestBody ElasticSearchQueryForDistinct query);

    @RequestMapping(method = {RequestMethod.POST}, value = {"/user_label/_search"})
    String userLabelSearchForDistinctField1Field2(@RequestBody ElasticSearchQueryForDistinctField1Field2 query);

}
